package com.jaxb2;

import java.io.File;

import javax.xml.bind.JAXBContext;
import javax.xml.bind.Unmarshaller;

public class UnMarsallingExample1 {
public static void main(String[] args) throws Exception{
	File file=new File("C:\\file\\employee.txt");
	JAXBContext jaxbContext=JAXBContext.newInstance(Employee.class);
	Unmarshaller unmarshaller=jaxbContext.createUnmarshaller();
	Employee employee=(Employee)unmarshaller.unmarshal(file);
	System.out.println(employee);
	
	
}
}
